package com.wei.health.model.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public abstract class BaseInsertEntity extends BaseEntity {

    private static final long serialVersionUID = -7314584145079382702L;

    private Long creator;// 创建人id
    private Date createTime;// 创建时间

    public void init(long userId) {
        this.creator = userId;
        this.createTime = new Date();
    }

}